package com.tourcools.client.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.tourscool.api.domain.User;
import com.tourscool.api.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController  {

    @Reference(interfaceClass= UserService.class)
    private UserService userService;


    @GetMapping("/user")
    public User getUser(){
        return userService.getUser();
    }

}